package spec.ganlijuan.unit3.ball;

public class ball {
    String ballmc;
    String ballzj;
    String ballcz;
    String ballzl;
    String ballrq;

    //成员方法（自我介绍、getter和setter）

    /**
     * 方法的结构
     * 1、返回值的类型
     * 2、方法名
     * 3、参数列表
     * 4、方法体
     */

    String zwjs() {
        String s = "我是" + ballmc + "," + "我的直径是" + ballzj + "," + "我的材质是" + ballcz + "," + "我的重量是" + ballzl + "," + "我适合的人群是" + ballrq;
        return s;
    }

    public String getBallmc() {
        return ballmc;
    }

    public void setBallmc(String ballmc) {
        this.ballmc = ballmc;
    }

    public String getBallzj() {
        return ballzj;
    }

    public void setBallzj(String ballzj) {
        this.ballzj = ballzj;
    }

    public String getBallcz() {
        return ballcz;
    }

    public void setBallcz(String ballcz) {
        this.ballcz = ballcz;
    }

    public String getBallzl() {
        return ballzl;
    }

    public void setBallzl(String ballzl) {
        this.ballzl = ballzl;
    }

    public String getBallrq() {
        return ballrq;
    }

    public void setBallrq(String ballrq) {
        this.ballrq = ballrq;
    }

    //构造方法
    ball(String ballmc,String ballzj,String ballcz,String ballzl,String ballrq){
        this.ballmc=ballmc;
        this.ballzj=ballzj;
        this.ballcz=ballcz;
        this.ballzl=ballzl;
        this.ballrq=ballrq;
    }
}






